<?php

namespace App\Controllers;

class Home extends BaseController
{
    public function index(): string
    {
        // return view('home');
        $places=new \App\Models\Places();
        $records=$places->findAll();
        $parser=\Config\Services::parser();
        return $parser->setData(['records'=>$records])->render('placeslist');
    }
}
